<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="VoloViewDlg" widgetVar="VoloViewDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.ViewVoloTitle}" closeOnEscape="true">

            <h:form id="VoloViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{voloController.selected != null}">

                        <h:outputText value="#{myBundle.ViewVoloLabel_idVOLO}"/>
                        <h:outputText value="#{voloController.selected.idVOLO}" title="#{myBundle.ViewVoloTitle_idVOLO}"/>

                        <h:outputText value="#{myBundle.ViewVoloLabel_prezzo}"/>
                        <h:outputText value="#{voloController.selected.prezzo}" title="#{myBundle.ViewVoloTitle_prezzo}"/>

                        <h:outputText value="#{myBundle.ViewVoloLabel_data}"/>
                        <h:outputText value="#{voloController.selected.data}" title="#{myBundle.ViewVoloTitle_data}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>

                        <h:outputText value="#{myBundle.ViewVoloLabel_durata}"/>
                        <h:outputText value="#{voloController.selected.durata}" title="#{myBundle.ViewVoloTitle_durata}">
                            <f:convertDateTime pattern="HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{myBundle.ViewVoloLabel_elemento}"/>
                        <h:outputText value="#{voloController.selected.elemento.idELEMENTO}"/>

                        <h:outputText value="#{myBundle.ViewVoloLabel_compagnia}"/>
                        <h:outputText value="#{voloController.selected.compagnia.idCOMPAGNIA}"/>

                        <h:outputText value="#{myBundle.ViewVoloLabel_arrivo}"/>
                        <h:outputText value="#{voloController.selected.arrivo.cap}"/>

                        <h:outputText value="#{myBundle.ViewVoloLabel_partenza}"/>
                        <h:outputText value="#{voloController.selected.partenza.cap}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{myBundle.Close}" onclick="VoloViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
